<?php
class CaptchaController extends CaptchaAppController{
	var $uses = array();
	var $helpers = array('Session','Html','Form');
    var $components = array('Auth','Session','RequestHandler','Captcha.Captcha');
 	
	function image(){ 
		
		Configure::write('debug',0); 
		$this->autoRender = false;
	    $this->Captcha->create();

		// Create a blank image and add some text
//		$im = imagecreatetruecolor(120, 20);
//		$text_color = imagecolorallocate($im, 233, 14, 91);
//		imagestring($im, 1, 5, 5,  'A Simple Text String', $text_color);
//		header('Content-type: image/jpeg');
//		imagejpeg($im);
//		imagedestroy($im);
		exit();
	}	
}